﻿dp_unify_china = {
	war_goal = unification
	
	texture = "gfx/interface/icons/war_goals/unification.dds"
	
	selectable_in_lens = {
		can_form_nation = CHI
	}
	
	possible = {
		NOT = { is_country_type = decentralized }
		is_subject = no
		can_form_nation = CHI
		scope:target_country = {
			NOT = { is_country_type = decentralized }
			aggressive_diplomatic_plays_permitted = yes
			OR = {
			can_form_nation = CHI
			any_state = {
        	state_region = { is_homeland = cu:han }
	  owner = scope:target_country
        }
			AND = {
			exists = c:MCH
			this = c:MCH
			
			}
			AND = {
			exists = c:TIB
			this = c:TIB
			}
			AND = {
			exists = c:MGL
			this = c:MGL
			}
			AND = {
			exists = c:XIN
			this = c:XIN
			}
			}
		}
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}
dp_leadership_china = {
	war_goal = unification_leadership
	
	requires_interest_marker = no
	mirror_war_goal = yes
	
	texture = "gfx/interface/icons/war_goals/unification.dds"
	
	selectable_in_lens = {
		always = no
	}	
	
	possible = {
		has_technology_researched = nationalism	
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}
dp_annex_subject = {
	war_goal = annex_country
	
	texture = "gfx/interface/icons/war_goals/annex_country.dds"
	
	possible = {
		NOT = { is_country_type = decentralized }
		OR = {
		NOT = { this = c:MCH}
		
scope:target_country = {
NOT = {has_diplomatic_pact = { who = root type = id_buzhengshi } }
}
	scope:target_country = {
NOT = {has_diplomatic_pact = { who = root type = id_zongdu } }
}	
	scope:target_country = {
NOT = {has_diplomatic_pact = { who = root type = id_dujun } }
}	
		}
		aggressive_diplomatic_plays_permitted = yes
		scope:target_country = {
			NOT = { is_country_type = decentralized }
			is_direct_subject_of = root
			OR = {
				has_diplomatic_pact = { who = root type = dominion }
				has_diplomatic_pact = { who = root type = puppet }
				has_diplomatic_pact = { who = root type = vassal }
	has_diplomatic_pact = { who = root type = id_buzhengshi } 

has_diplomatic_pact = { who = root type = id_zongdu } 
has_diplomatic_pact = { who = root type = id_dujun } 
}
			
		}			
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}